<div class='fui-page  fui-page-current'>
    <div class="fui-header">
	<div class="fui-header-left">
	    <a class="back" ng-click="goback()"></a>
	</div>
	<div class="title">订单核销</div> 
	<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content navbar'>

	<div class='fui-list-group'>
	    <div class='fui-list order-status'>

		<div class='fui-list-inner'>
		    <div class='title'>{{pagedata.order.ordersn}}</div>
		    <div class='text'>订单金额: ￥{{pagedata.order.price}}</div>
		</div>
	    </div>
	</div>

	<div ng-if="pagedata.carrier ||pagedata.store" class='fui-list-group' style='margin-top:5px;'>

	    <div class='fui-list'>
		<div class='fui-list-media'><i class='icon jinyunicon icon-person'></i></div>
		<div class='fui-list-inner'>
		    <div class='title'>{{pagedata.carrier.carrier_realname}} {{pagedata.carrier.carrier_mobile}}</div>
		</div>
	    </div>
	  
	    <div ng-if="pagedata.store" class='fui-list'>
		<div class='fui-list-media'><i class='icon jinyunicon icon-dianpu'></i></div>
		<div class='fui-list-inner'>
		    <div class='title'>{{pagedata.store.title}}</div>
		</div>
	    </div>
	   
	</div>

	<div class="fui-list-group goods-list-group">  

	    <div class="fui-list-group-title"><i class="icon jinyunicon icon-dianpu"></i> {{pagedata.shopset.title}}</div>
		<a ng-repeat="g in pagedata.order_goods" href="javascript:;" ng-click="access_json('/goods.detail//id='+g.goodsid)">
			<div class="fui-list goods-list">
				<div class="fui-list-media">
				<img ng-src="{{tomedia(g.image)}}" class="round">
				</div>
				<div class="fui-list-inner">
				<div class="text goodstitle">{{g.title}} <i ng-if="g.selespename" class="fui-tag fui-tag-red">{{g.selespename}}</i></div> 
				<div ng-if="!empty(g.optionid)" class='subtitle'>{{g.optiontitle}}</div>

				</div>
				<div class='fui-list-angle'>
				￥<span class='marketprice'>{{g.price}}<br/>   x{{g.total}}
				</div>

			</div>
	    </a>
	</div>

	<div ng-if="pagedata.order.dispatchtype!=0" class='fui-cell-group'>
	    <div class='fui-cell'>
		<div class='fui-cell-label'>提货码</div>
		<div class='fui-cell-info'></div>
		<div class='fui-cell-remark noremark'>{{pagedata.post.verify_code}}</div>
	    </div>
	</div>

	<div ng-if="pagedata.order.dispatchtype==0 &&(pagedata.order.verifytype ==0 || pagedata.order.verifytype==3)" class='fui-cell-group'>
	    <div class='fui-cell'>
		<div class='fui-cell-label'>消费码</div>
		<div class='fui-cell-info'></div>
		<div class='fui-cell-remark noremark'>{{pagedata.post.verify_code}}</div>
	    </div>
	</div>
	<div ng-if="pagedata.order.dispatchtype==0 && pagedata.order.verifytype ==1 "  class='fui-cell-group'>
	    <div class='fui-cell'>
		<div class='fui-cell-label' style='width:auto;'>使用次数 (剩余 <span class='text-danger'>{{pagedata.lastverifys}}</span> 次)</div>
		<div class='fui-cell-info'></div>
		<div class='fui-cell-remark noremark'>
		    <div class="fui-number" 
			 data-value='1'
			 data-max="{{pagedata.lastverifys}}"
			 data-min="1">
			<div class="minus">-</div>
			<input class="num shownum" type="tel" name="" value="1"/>
			<div class="plus ">+</div>
		    </div>
		</div>
	    </div>
	</div>

	<div ng-if="pagedata.order.dispatchtype==0 && pagedata.order.verifytype ==2 " ng-class="{'fui-according-group':1, 'expanded':pagedata.verifyinfo.length<=3,'verify-container':1}">
	    <div class='fui-according expanded'>
		<div class='fui-according-header'>

		    <i class='icon icon-list'></i>	     
		    <span class="text">消费码</span>
		    <span class="remark"><div class="badge" ng-if="pagedata.verifycode">1</div>
				<div class="badge">{{pagedata.post.verify_code}}</div>
			</span>
		</div>
		<div class="fui-according-content verifycode-container">

		    <div class='fui-cell-group'>
			
			    <div ng-repeat="v in pagedata.verifyinfo" ng-if="!pagedata.single||( pagedata.single && v.select )" class='fui-cell verify-cell' data-verifycode="{$v['verifycode']}">
				<div class='fui-cell-label' style='width:auto'>
				    <input ng-if="!v.verified && v.select && pagedata.single" type='checkbox' class='fui fui-checkbox fui-checkbox-danger verify-checkbox' checked style='display:none'/>
				    <input ng-if="!v.verified && !v.select && pagedata.single" type='checkbox' class='fui fui-checkbox fui-checkbox-danger verify-checkbox'/>
				    <input ng-if="!v.verified && v.select && !pagedata.single" type='checkbox' class='fui fui-checkbox fui-checkbox-danger verify-checkbox' checked />
				    <input ng-if="!v.verified && !v.select && !pagedata.single" type='checkbox' class='fui fui-checkbox fui-checkbox-danger verify-checkbox' />
					   {{v.verifycode}}
				</div>
				<div class='fui-cell-info'></div>
				<div class='fui-cell-remark noremark'>
				  
				    <div ng-if="v.verified" class='fui-label fui-label-danger' >已使用</div>
				
				    <div ng-if="!v.verified" class='fui-label fui-label-default' >未使用</div>
				   

				</div>
			    </div>
			 
		
		    </div>


		</div>
	    </div>
	</div>
    </div>
    <div class="fui-footer postbtn" href="javascript:;" ng-click="post(pagedata.post,'post')">
	    <i class="icon jinyunicon icon-check"></i> 
	    <span ng-if="pagedata.order.dispatchtype">确认取货</span>
	    <span ng-if="!pagedata.order.dispatchtype">确定使用</span>
    </div>
</div>